package com.fowo.api.model.purchase.rgoods.order.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 采购退货单子表 导入导出辅助模型 */
@Getter
@Setter
public class PurchaseRgoodsOrderProductExcelPo {

  @Size(max = 500, message = "图片长度不能超过20")
  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> picUrl;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属采购退货单")
  private String parentIdRemark;

  @ExcelIgnore
  @ExcelProperty(value = "所属采购退货单")
  private Long parentId;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long productId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String productSku;

  @Size(max = 50, message = "属性长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "属性")
  private String productAttribute;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String sidShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long sid;

  @Size(max = 50, message = "fnsku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "fnsku")
  private String fnskuFnsku;

  @ExcelIgnore
  @ExcelProperty(value = "fnsku")
  private Long fnsku;

  @ExcelProperty(value = "可用品退货数量")
  private Integer quantity;

  @ExcelProperty(value = "次品退货量")
  private Integer returnBadNum;

  @Size(max = 50, message = "单价长度不能超过20")
  @ExcelProperty(value = "单价")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "退货金额")
  private java.math.BigDecimal deductionAmount;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remark;
}
